<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1 th:inlines="text">文件上传</h1>
<form action="/api/upload" method="post" enctype="multipart/form-data">
    <p>
        选择文件: <input type="file" name="file" />
    </p>
    <p>
        <input type="submit" value="提交" />
    </p>
</form>
</body>
</html>